package com.slipper.common.http;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;

public class HttpRequestConfiguration {
    @Bean
    public FilterRegistrationBean<HttpRequestFilter> filterRegistrationBean() {
        FilterRegistrationBean<HttpRequestFilter> registration = new FilterRegistrationBean<>();
        registration.setFilter(new HttpRequestFilter());
        registration.addUrlPatterns("/*");
        registration.setName("httpRequestLogFilter");
        return registration;
    }
}
